<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php include_slot('title') ?>世界名模大赛 - 官方网站</title>
<meta name="description" content="<?php include_slot('description') or print '2010 世界名模大赛-QQ炫舞天使评选-官方网站' ?> " />
<meta name="keywords" content="<?php include_slot('keywords') or print '2010,世界名模大赛,QQ炫舞天使评选,世界模特大赛,世界名模大赛官方网站'?> " />
<meta name="robots" content="index, follow" />
<?php include_stylesheets() ?>
<?php include_javascripts() ?>
</head>
<body>

<!--Head-->
<div class="head_main">
   <div class="head_main2">
     <h1><a href="<?php echo url_for('@homepage') ?>" target="_self" class="head_main2_a">世界名模大赛</a></h1>
     <div class="head_dl">
        <?php if ($sf_user->isAuthenticated()): ?>
          <a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>">选手中心</a>
          |
          <a href="<?php echo url_for('@session_destroy?id=' . $sf_user->getAttribute('id')) ?>">退出</a>
        <?php else: ?>
          <a href="<?php echo url_for('@session_new') ?>">登录选手中心</a>
        <?php endif ?>
     </div>   
   </div>
</div>
<div class="home_menu">
    <ul>
       <span class="ft4"><?php include_slot('area') ?></span>
       <li><a href="<?php echo url_for('@homepage') ?>">首页</a></li>
       <li><a href="<?php echo url_for('@area') ?>">大赛专区</a></li>
       <li><a href="<?php echo url_for('@contestant') ?>">参赛佳丽</a></li>
       <li><a href="<?php echo url_for('@photo') ?>">精彩照片</a></li>
       <li><a href="<?php echo url_for('@video') ?>">视频播报</a></li>
       <li class="last"><a href="<?php echo url_for('@application_license') ?>">我要报名</a></li>
    </ul>
    <div class="clears"></div>
</div>
<?php echo $sf_content ?>

<!--Foot-->
<div class="foot">
   <div class="foot_top"></div>
   <div class="foot_bottom">
      <p>
         <a href="/html/about_us.html">大赛简介</a><span>|</span>
         <a href="/html/sponsor.html">招商合作</a><span>|</span>
         <a href="/html/copyright.html">法律声明</a><span>|</span>
         <a href="/html/Contact_us.html">联系我们</a>
      </p>
      <p>Copyright &copy; 世界名模大赛 版权所有</p>
      <p>
        <a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备10212324号</a>
      </p>
   </div>
</div>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16216214-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

<!--遮罩层-->
<div class="ts_zz"></div>

<!--提示层-->
<?php if ($sf_user->hasFlash('message')): ?>
<script type="text/javascript">
$(document).ready(function(){
  var a=0
  //隐藏弹出层
  $(".ts_close_btn").click(function(){
	 $(".ts,.ts_zz").hide();
  })
  
  //显示弹窗层
   $(".ts,.ts_zz").show();
   $(".ts_zz").css("height",$(document).height())
})
</script>
<div class="ts">
   <div class="ts_top">
   系统提示
   <div class="ts_close_btn"></div>
   </div>
   <div class="ts_bottom">
      <p><?php echo $sf_user->getFlash('message') ?></p>
   </div>
</div>
<?php endif ?>

  <?php if ($sf_request->getParameter('sf_warning')): ?>
    <?php echo $sf_request->getParameter('sf_warning') ?>
  <?php endif ?>

</body>
</html>